package main.model.critters.genetics;

import java.util.HashMap;
import java.util.Map;

public class Chromosome {
	
	private Map<GeneType, Gene> chromosomeMap = new HashMap<GeneType, Gene>();
	
	/*
	 * Initiates a new chromosome with default genes
	 */
	public Chromosome(){
		for (GeneType g : GeneType.values()){
			chromosomeMap.put(g, new Gene(g));
		}
	}
	
	public void setGene(GeneType g, Gene gene){
		chromosomeMap.put(g, gene);
	}
	
	public Gene getGene(GeneType g){
		return chromosomeMap.get(g);
	}
}
